import requests

# 准备测试数据
url = "http://ihrm-test.itheima.net/api/sys/login"
header = {"Content-Type": "application/json"}
body = {
    "mobile": "138000000002",
    "password": "123456"
}
resp = requests.post(url=url, headers=header, json=body)
assert resp.status_code == 200
assert resp.json().get("success") == True
assert resp.json().get("code") == 10000
assert resp.json().get("message") == "操作成功！"
